package com.py.custom.business.demo.core.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * description：
 */
@RestController
@Slf4j
public class DemoController {


    @Value("${testkey:默认值}")
    private String testkey;

    @GetMapping("/test")
    public String test() {
        log.info("请求参数：");
        log.error("出错了：");
        return "ok：" + testkey;
    }
}
